home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / ABox 1.9.5 / Header Files / ABTopicList.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-26  |  3.3 KB  |  122 lines  |  [TEXT/MMCC]

  1. /*    
  2.     Copyright © 1991-1995 by TopSoft Inc.  All rights reserved.
  3.  
  4.     You may distribute this file under the terms of the TopSoft
  5.     Artistic License, accompanying this package.
  6.     
  7.     This file was developed by George (ty) Tempel in connection with TopSoft, Inc..
  8.     See the Modification History for more details.
  9.  
  10. Product
  11.     About Box
  12.  
  13. FILE
  14.     ABTopicList.h
  15.  
  16. NAME
  17.     ABTopicList.h, part of the ABox project source code,
  18.     responsible for handling the AboutBox topic list class stuff.
  19.  
  20. DESCRIPTION
  21.     This file contains defines for the about box modules.
  22.     
  23. DEVELOPED BY
  24.     George (ty) Tempel                ttempel@monmouth.com
  25.     All code in this file, and its associated header file was
  26.     Created by George (ty) Tempel in connection with the TopSoft, Inc.
  27.     "FilterTop" application development, except where noted.
  28.  
  29. CARETAKER - George (ty) Tempel <ttempel@monmouth.com>
  30.      Please consult this person for any changes or suggestions to this file.
  31.  
  32. MODIFICATION HISTORY
  33.  
  34.     dd mmm yy    -    xxx    -    patchxx: description of patch
  35.     9 June 94    -    ty    -    Initial Version Created
  36.     15-july-94    -    ty    -    modifications to include ABUFSSpecs mix-in class
  37.     20-july-94    -    ty    -    initial version released
  38.     28-july-94    -    ty    -    1.0.6 -- included mix-in class ABUCursor
  39.     23-may-95    -    ty    -    changes for compatibility with the CodeWarrior CW6
  40.                             release and the associated Universal Headers from Apple:
  41.                             most methods that returned references now have "Ref" at
  42.                             the end of their methods names to prevent possible collisions
  43.                             with datatypes and classes of the same name (older versions
  44.                             of the compiler didn't have a problem with this).
  45.     25-oct-95    -    ty    -    changes for "const" usage under CW7; simplification of Boolean
  46.                             query methods
  47.  
  48. */
  49.  
  50. /*===========================================================================*/
  51.  
  52. /*========== Exclusion Macros ============*/
  53.  
  54. #pragma    once
  55.  
  56. #ifndef    _ABTopicList_
  57. #define    _ABTopicList_
  58.  
  59.  
  60. /*============ Header Files ==============*/
  61.  
  62. #include    "ABLinkedList.h"
  63. #include    "ABTopic.h"
  64. #include    "ABMovieTopic.h"
  65. #include    "ABOtherTopic.h"
  66. #include    "ABUFSSpecs.h"
  67. #include    "ABUCursor.h"
  68.  
  69. /*=========== External Linkage ===========*/
  70.  
  71. /*================ Macros ================*/
  72.  
  73. /*============== Constants ===============*/
  74.  
  75.  
  76. /*================ Enums =================*/
  77.  
  78. /*=============== Structs ================*/
  79.  
  80. /*=============== Typedefs ===============*/
  81.  
  82. /*=========== Class Definitions ==========*/
  83.  
  84.  
  85. class    ABTopicList :  public ABLinkedList
  86. {
  87.     public:
  88.                         ABTopicList(void);
  89.         virtual            ~ABTopicList(void);
  90.         virtual    OSErr    Load (FSSpecPtr top, short defaultResFileRefNum);
  91.         
  92.         virtual    ABLink*    NextLink(void);
  93.         virtual    ABLink*    PreviousLink(void);
  94.         
  95.         virtual    ABLink*    FirstLink(void);
  96.         virtual    ABLink*    LastLink(void);
  97.         virtual    ABLink*    GotoLink(ABIndex number);
  98.  
  99.         
  100.     protected:
  101.         virtual        OSErr RecurseDownFolderTree( FSSpecPtr top,
  102.                                                 short int depth, 
  103.                                                 ABTopic *parentFolder);
  104.                                                 
  105.                     short GetDefaultResFileRefNum(void) const { return this->DefaultResFileRefNum(); }
  106.                     
  107.                     ABTopic* TryTopics(FSSpec& inFileSpec);
  108.                     ABTopic* TryTopic(FSSpec& inFileSpec, ETopicType inTopicType);
  109.                                 
  110.     private:
  111.                 short    mDefaultResFileRefNum;
  112.                 short&    DefaultResFileRefNum(void)              { return this->mDefaultResFileRefNum; }
  113.                 short const&    DefaultResFileRefNum(void) const { return this->mDefaultResFileRefNum; }
  114. };
  115.  
  116.  
  117.  
  118.  
  119.  
  120. #endif    // _ABTopicList_
  121.  
  122.